package com.zx.DataStructuresAndAlgorithms.dao;

/**
 * @Author lovexu
 * @Date 2022/10/22 15:32
 * @ClassName SortSwap
 * @Description TODO
 **/
public interface SortSwap {
    static <AnyType extends  Comparable<? super AnyType>>
    void swapSelect(AnyType[] arr, int i, int ExchangeIndex) {
        AnyType temp = arr[ExchangeIndex];
        arr[ExchangeIndex] = arr[i];
        arr[i] = temp;
    }

    static <AnyType extends Comparable<? super AnyType>> void swapInsert(AnyType[] arr, int j, AnyType temp) {
        arr[j] = temp;
    }

}
